<?php
/*
 * @Date: 2021-04-25 23:21:12
 * @Author: yukun
 * @LastEditors: yukun
 * @LastEditTime: 2021-05-06 21:10:58
 * @FilePath: /design-patterns-study/策略模式/Go.php
 * @Description: 本文件主要功能为：
 */
include 'ChanleConstants.php';
include 'Order.php';
include 'ChanleInterface.php';


$chanleArr = [
    ChanleConstants::TMALL,
];

foreach ($chanleArr as $chanle) {
    include "{$chanle}.php";
    $chanleObj = new Order($chanle);
    
    // 创建订单
    $chanleObj->create();

    // 取消订单
    $chanleObj->cancel();

    // 推送物流
    $chanleObj->pushShip();
}